package com.unknown.communication.entity;

public class Message {
    private Class<?> sender;
    private Class<?> receiver;

    public Message(Class<?> sender, Class<?> receiver) {
        this.sender = sender;
        this.receiver = receiver;
    }

    public Class<?> getSender() {
        return sender;
    }

    public Class<?> getReceiver() {
        return receiver;
    }

    @Override
    public String toString() {
        return "Message{" +
                "sender=" + sender +
                ", receiver=" + receiver +
                '}';
    }
}
